package com.order.feign.fallback;

import com.cloud.domain.TbUser;
import com.order.feign.UserClient;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @author: yu.tan
 * @date: 2020/11/9 22:34
 * @Description:
 */
@Service
public class UserFallBack implements UserClient {
    @Override
    public TbUser test() {
        //容错逻辑
        TbUser user=new TbUser();
        user.setId(-100);
        user.setUsername("服务容错");
        return user;
    }
}
